import type { GreasyForkElements } from '../../../../../../../../../types/constants/personalization/greasy_fork'
import {
  PAGE_ELEMENTS,
  SUPPORTED_PLATFORMS,
} from '../../../../../../../../../types/constants'

// 测试链接：https://greasyfork.org/zh-CN/help/code-rules
export class CodeRulesPage {
  elements: GreasyForkElements = PAGE_ELEMENTS[SUPPORTED_PLATFORMS.GREASY_FORK]
  private static instance: CodeRulesPage

  /**
   * 获取单例实例
   */
  public static getInstance(): CodeRulesPage {
    if (!CodeRulesPage.instance) {
      CodeRulesPage.instance = new CodeRulesPage()
    }
    return CodeRulesPage.instance
  }

  init(): void {
  }

  getMainStyles(): string {
    return ``
  }
}
